import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *
from selenium.webdriver.support.select import Select
testCase="DBshop008_后台销售管理--查看订单支付信息流程"

firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu2(firefox,'销售管理','支付记录')
firefox.find_elements_by_xpath('//table/tbody/tr[1]/td[1]/a')[0].click()



# try:
#     firefox.find_element_by_xpath('//span[@class="text-success"]').is_displayed('已发货'or'未发货')
#     writeLog("%s 测试通过"%testCase)
#     print("%s 测试通过"%testCase)
# except:
#     writeLog("%s 测试失败" % testCase)
#     getPhoto(firefox)
#     print("%s 测试失败" % testCase)
#
time.sleep(2)
firefox.quit()